﻿using System.Collections.Concurrent;
using Microsoft.AspNetCore.Mvc;
using ZilLion.Service.Core.Infrastructure.Filters;

namespace ZilLion.Service.Core.Infrastructure.Base
{
    public class ZilLionControllerBase : Controller
    {
        protected ConcurrentDictionary<string, object> GetJwtDictionary()
        {
            var container = (JwtInfoContainer) HttpContext.RequestServices.GetService(typeof(JwtInfoContainer));
            return container.JwtInfoDictionary;
        }
    }
}